﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SpaceNeedle.x6473.WindowsPhone.Common
{
    public class Tracking
    {
        public static void SendView(string viewName)
        {
            GoogleAnalytics.EasyTracker.GetTracker().SendView(viewName);
        }

        public static void SendException(Exception exception, bool isFatal = false)
        {
            GoogleAnalytics.EasyTracker.GetTracker().SendException(exception.ToString(), isFatal);
        }

        public static void SendSocial(string network, string action, string target)
        {
            GoogleAnalytics.EasyTracker.GetTracker().SendSocial(network, action, target);
            GoogleAnalytics.EasyTracker.GetTracker().SendEvent("category", "action", "label", 1234);
        }

        public static void SendEvent(string category, string action, string label, long value)
        {
            GoogleAnalytics.EasyTracker.GetTracker().SendEvent(category, action, label, value);
        }
    }
}
